package entries;

public class Parameter extends Entry{

	/** The name of this parameter */
	private String id;
	/** The number which says what number argument this is */
	private int number;
	
	/**
	 * Create a new Parameter to be used in functions/procedures
	 * @param id The id of the function/procedure where this parameter is added
	 * @param type The type of the argument
	 * @param number The number which says what number argument this is
	 */
	public Parameter(String id, String type, int number) {
		this.kind = Entry.PARAMETER;
		this.type = type(type);
		this.id = id;
		this.number = number;
	}
	
	/**
	 * Returns the id of this parameter
	 * @return The id of this parameter
	 */
	public String getId(){ return id; }
	
	/**
	 * Returns the number of this parameter
	 * @return The number of this parameter
	 */
	public int getNumber(){ return number; }
}